package com.application.lucky.widget.dialog;

import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.View;

import com.application.lucky.R;
import com.contrarywind.adapter.WheelAdapter;
import com.contrarywind.view.WheelView;

public class SelectWheelViewDialog extends BaseBottomEnterDialog {

    private WheelView wheelView;

    public SelectWheelViewDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected void initViews(Context context) {
        wheelView = ((WheelView) findViewById(R.id.wheel));
        wheelView.setAdapter(new WheelAdapter<String>() {
            @Override
            public int getItemsCount() {
                return 0;
            }

            @Override
            public String getItem(int index) {
                return null;
            }

            @Override
            public int indexOf(String o) {
                return 0;
            }
        });
        findViewById(R.id.tv_cancel).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });
        findViewById(R.id.tv_yes).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
    }

    @Override
    protected int layoutResId() {
        return R.layout.dialog_select_wheel_view;
    }
}
